<template>
	<view class="content">
		<b-swiper :swiper_list="swiper_list"></b-swiper>
		<b-tab :list="list"></b-tab>
	</view>
</template>

<script>
	import BTab from '@/components/b-tab/b-tab.vue'
	import BSwiper from '@/components/b-swiper/b-swiper.vue'
	export default {
		components: {
			BTab,
			BSwiper
		},
		data() {
			return {
				swiper_list: [],
				list: []
			}
		},
		onLoad() {
			this.loadSwiper()
			this.loadList()
		},
		methods: {
			async loadSwiper() {
				let ret = await uni.$get('getSwiper')
				this.swiper_list = ret
			},
			async loadList() {
				let ret = await uni.$get('getList')
				console.log(ret)
				this.list = ret
			}
		}
	}
</script>

<style lang="scss">
	.content {}
</style>
